package com.wu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wu.entity.sys.SDepartmentDo;
import org.apache.ibatis.annotations.Param;

/**
 * 部门表(SDepartmentDo)表数据库访问层
 *
 * @author
 * @since 2020-12-29 13:20:25
 */
public interface SDepartmentMapper extends BaseMapper<SDepartmentDo> {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SDepartmentDo queryById(Long id);

    SDepartmentDo getDepartmentByUserId(@Param("userId")Long userId);


}